var path = require('path');

console.log(path.resolve(__dirname, 'public'));

module.exports = {
    entry: "./test2.js",
    output: {
        path: __dirname,
        filename: "out.js"
    },
    module: {
        loaders: [
            {
                test: /.\js$/,
                loader: "babel-loader"
            }
        ]
    }
}